nodeValue

abstract fun nodeValue(): String

Returns a string that represents the node value.

The returned values for different types of nodes are:

ELEMENT_NODEnull
ATTRIBUTE_NODEThe attribute value
TEXT_NODEThe content of the text node
C_DATA_SECTION_NODEThe content of the CDATA Section
PROCESSING_INSTRUCTIONS_NODEThe entire node content excluding the target
COMMENT_NODEThe content of the comment
DOCUMENT_NODEnull
DOCUMENT_TYPE_NODEnull
DOCUMENT_FRAGMENT_NODEnull

Throws

when this instance is closed


abstract fun nodeValue(value: String)

Updates the node value with the given new value.

This method does nothing, if it is invoked for the node of one of the following types: ELEMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, DOCUMENT_FRAGMENT_NODE.

Parameters

value

a new node value

See also

Throws

when this node is closed